import './css/common.css';
// import  "./css/reset.css"

import klcs from "./js/klcs.js";
import "./js/dict.js";
import "./js/test.js";
import "./js/charts";
import ajax from "./js/ajax";

import _ from "./js/underscore.js";

// 引入
import { $, bbb } from "./js/module.js";
// import {  defineAsyncComponent } from 'vue'
// 引入 echarts 核心模块，核心模块提供了 echarts 使用必须要的接口。
import * as echarts from 'echarts';


// import aChangeTime from "./component/a-changeTime.vue";
// import sort from "./component/sort.vue";
// import tabs from "./component/tabs.vue";
// import kExpand from "./component/k-expand.vue";
// import vantPicker from "./component/vant-picker.vue";
// import kElUpload from "./component/k-el-upload.vue";
// import kElAjaxSelect from "./component/k-el-ajaxSelect.vue";
// import kElNumberRange from "./component/k-el-numberRange.vue";
// import scrollList from "./component/scrollList/index.vue";
// import scrollView from "./component/scrollView.vue";
// import kSplitNumber from "./component/k-splitNumber.vue";
// import kEchartsBox from "./component/kEchartsBox.vue";


// klcs.install = function(app, obtions) {
//    app.component("aChangeTime", aChangeTime)
//    app.component("sort", sort)
//    app.component("tabs", tabs)
//    app.component("vantPicker", vantPicker)
//    app.component("kElUpload", kElUpload)
//    app.component("kExpand", kExpand)
//    app.component("kElAjaxSelect", kElAjaxSelect)
//    app.component("kElNumberRange", kElNumberRange)
//    app.component("scrollList", scrollList)
//    app.component("scrollView", scrollView)
//    app.component("kSplitNumber", kSplitNumber)
//    app.component("kEchartsBox", kEchartsBox)
// }

klcs._ = _;
klcs.ajax = ajax;
window.klcs = klcs;
window.echarts = echarts;
export default klcs;

// 普通模式可以用.
// klcs.install = function(app, obtions) {
//         const requireModules = import.meta.glob('./component/*.vue')

//         for (const path in requireModules) {
//           const result = path.match(/.*\/(.+).vue$/) || []
//           const modulesConent = requireModules[path]
//           app.component(result[1], defineAsyncComponent(modulesConent))
//         }
//       }
